//
//  WXApiManager.m
//  quxiangtao
//
//  Created by xbmios on 2018/8/15.
//  Copyright © 2018年 shanhaijin. All rights reserved.
//

#import "WXApiManager.h"

@implementation WXApiManager

+ (instancetype)sharedManager {
    
    static dispatch_once_t onceToken;
    static WXApiManager *instance;
    dispatch_once(&onceToken, ^{
        instance = [[WXApiManager alloc] init];
    });
    return instance;
    
}

#pragma mark - WXApiDelegate
- (void)onResp:(BaseResp *)resp {

    if ([resp isKindOfClass:[SendAuthResp class]]) {

        if (_delegate
            && [_delegate respondsToSelector:@selector(managerDidRecvAuthResponse:)]) {

            SendAuthResp *authResp = (SendAuthResp *)resp;
            [_delegate managerDidRecvAuthResponse:authResp];

        }

    }

}


@end
